package com.eamois.service.sys.impl;

import java.util.Collection;

import com.eamois.dao.sys.SubMaterialDao;
import com.eamois.domain.sys.SubMaterial;
import com.eamois.domain.sys.SubMaterialType;
import com.eamois.service.impl.BaseServiceImpl;
import com.eamois.service.sys.SubMaterialService;

public class SubMaterialServiceImpl extends BaseServiceImpl<SubMaterial, SubMaterialDao> implements SubMaterialService{

	@Override
	public Collection<SubMaterial> findAllSubMaterial() {
		// TODO Auto-generated method stub
		return this.getDao().findAllSubMaterial();
	}

	@Override
	public Collection<SubMaterial> findSubMaterialByName(String name,String code,boolean isLike) {
		// TODO Auto-generated method stub
		return this.getDao().findSubMaterialByName(name,code,isLike);
	}

	@Override
	public Collection<SubMaterial> findMaterialByType(
			SubMaterialType subMaterialType,int page) {
		// TODO Auto-generated method stub
		return this.getDao().findMaterialByType(subMaterialType,page);
	}

	@Override
	public Collection<SubMaterial> findMaterial(String name, String code,
			String parameter, String remark) {
		// TODO Auto-generated method stub
		return this.getDao().findMaterial(name, code, parameter, remark);
		}

	@Override
	public Collection<String> findMaterialIds() {
		// TODO Auto-generated method stub
		return this.getDao().findMaterialIds();
	}

	@Override
	public boolean findMaterial(String id) {
		// TODO Auto-generated method stub
		return this.getDao().findMaterial(id);
	}

	@Override
	public Collection<SubMaterial> findMaterialByTypeAll(
			SubMaterialType subMaterialType) {
		// TODO Auto-generated method stub
		return this.getDao().findMaterialByTypeAll(subMaterialType);
	}

	@Override
	public SubMaterial findMaterialById(String id) {
		// TODO Auto-generated method stub
		return this.getDao().findMaterialById(id);
	}

	@Override
	public Collection<SubMaterial> findByBelongId(String id) {
		// TODO Auto-generated method stub
		return this.getDao().findByBelongId(id);
	}

}
